<input id="hd_context" type="hidden" value="<?php echo $breadcumb;?>"/>
<ul class="ul_page" style="margin:0 auto;">
<!--    <li class="title_app">
        <div>PCG</div>
    </li>-->
<!--    <li class="description_app" style="float: left;">
        <div>Hola! 
            <span style="font-size: 1.2em;color:#2B93D9;text-transform:capitalize;">
                <?php echo $member_name;?>
            </span> 
            usted ha iniciado sesión en SACC con Rol 
            <span style="font-size: 1.2em;color:#2B93D9;text-transform:capitalize;">
                <?php echo $rol;?>
            </span>
        </div>
    </li>-->
    <div class="groups">
        <?php  if(!empty($groups)){ ?>
        <h2>Estoy inscrito en:</h2>
        
        <?php   foreach ($groups as $g){?>
                    <div class="group">
                        <ul>
                            <li><p><?php echo $g->group_name;?></p></li>
                            <li><span><?php echo $g->group_type;?></span></li>
                            <li><span>Mi Rol: <?php echo $g->_rol_name;?></span></li>
                        </ul>
                        <ul class="ul_modules_menu">
                            <?php if(!empty($modules[$g->groups_id])){
                                    $modulesByGroup = $modules[$g->groups_id];
                                    foreach($modulesByGroup as $module){
                                        $url = base_url()."index.php/modules/index/$module->id";
                                        $onclick = "";
                            ?>
                                        <li><label><a onclick="<?php echo $onclick;?>" href="<?php echo $url;?>"><?php echo $module->name;?></a></label></li>
                          <?php              
                                    }
                                }
                                
                            ?>
                        </ul>
                    </div>
        <?php 
                }
        }?>
    </div>
</ul>